package com.da.springtest.spring5.life;

/**
 * @author JokerDa.
 * @date 2021/1/3 21:43
 * Description:
 */
public class LifeBean {

    private String value;

    public LifeBean() {
        System.out.println("第一步 初始化bean");
    }

    public void setValue(String value) {
        this.value = value;
        System.out.println("第二步 设置属性");
    }

    public void initMethod() {
        System.out.println("第三步 初始化处理");
    }

    public void destroyMethod() {
        System.out.println("第五步 销毁处理");
    }
}
